package com.haizol.rest;

import java.util.List;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.haizol.service.manage.IPrizeInfoService;
import com.haizol.service.manage.vos.PrizeInfoVo;

@RestController
@RequestMapping("prize")
public class PrizeInfoRest {

	@Reference
	IPrizeInfoService prizeInfoService;

	@GetMapping
	public String index() {
		return "haizol-luckey-web-manage";
	}

	@GetMapping("list")
	public List<PrizeInfoVo> list() {
		return this.prizeInfoService.listAll();
	}

}
